#ifndef MARCO_DATA_H
#define MARCO_DATA_H

#endif // MARCO_DATA_H
//mstar atv
#define MAX_NUMBER_OF_ATV_PROGRAM 256
#define MAX_PRTABLEMAP 32
#define MAX_STATION_NAME  30
#define MAX_LISTPAGE_SIZE 5
#define MSTAR_ATV_BIN_HEAD_LEN 0
//mstar dtv
#define MAX_AUD_LANG_NUM  16
#define MAX_SERVICE_NAME   50
#define MSTAR_DTV_BIN_HEAD_LEN 136


#define BOOL unsigned char

#define FILE_LEN_MS_A 12580
#define STRUCT_LEN_MS_A 12580
#define FILE_LEN_MS_D 260
#define STRUCT_LEN_MS_D 260

#define FILE_LEN_MT_A  68
#define FILE_LEN_MT_D 88

#define SHOW_NUM_DATA   50//QTableView show how many datas each times

#define STD_FILE_FR_TV "from_tv_std.bin"
#define STD_FILE_FR_PC "from_pc_std.bin"


#define NUM_TV_ITEM  6
#define NUM_DTV_ITEM 7

#define FILE_PATH_LEN  100

#define STEPSIZE 5000

#define MS_DTV_MAX_FRE_TABLE 256

#define MAGIC_LEN 8
#define MSTAR_DTV_FILE_LEN  0x441d4
#define MSTAR_DTV_FREQ_LOC  0x3f83c

#define READ_TV_FILE_ERROR QMessageBox::warning(this,"Warning","In Convert to standard ,Read TV File error")
#define CONVERT_TO_FILE_FAILED QMessageBox::warning(this,"Warning","Convert to standard file failed")
#define CONVERT_TO_FILE_SUCCESS QMessageBox::information(this,"Promot","Convert file Success!")
#define WRITE_TV_FILE_ERROR QMessageBox::warning(this,"Warning","In Convert to tv file,Write TV File error")
#define CONVERT_TO_TV_FAILED QMessageBox::warning(this,"Waring","Convert to tv file failed")
#define CONVERT_TO_TV_SUCCESS QMessageBox::information(this,"Prompt","Convert to tv file success")

#define STRING_TRAN_ERROR_1(x)  Q_ASSERT(*ok==true)


#define STRING_TRAN_ERROR_0 Q_ASSERT(*ok==true)

#define CHECK_INPUT_EMPTY(str) if(str.isEmpty())\
                    {\
                        ui->msg->setText("The Items,inputed,have empty item");\
                        return ;\
                    }

#define CHECK_INPUT_EMPTY_1(str)  if(str.isEmpty())\
                    {\
                     ui->msg->setText("The Items ,inputed,have empty item");\
                    return -1;\
                    }
